import Vue from 'vue'
import Vonic from 'vonic'

export default function() {
  const routes = this.routes
  const store = this.store

  Vonic.app.setConfig('routerOptions', {
    mode: 'history'
  })

  Vue.use(Vonic.app, {
    routes,
    store
  })
  this.routes = window.$app.$router
  return window.$app
}
